package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.jieshi.JieShiUserData;
import com.yanqu.road.entity.activity.jieshi.config.*;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class JieShiActivityBusiness {

    public static JieShiUserData getJieShiUserData(int activityId, long userId) {
        return DaoHelper.getJieShiUserDataDaoImpl().getJieShiUserData(activityId, userId);
    }

    public static boolean addJieShiUserData(JieShiUserData data) {
        return DaoHelper.getJieShiUserDataDaoImpl().add(data);
    }

    public static boolean updateJieShiUserData(JieShiUserData data) {
        return DaoHelper.getJieShiUserDataDaoImpl().update(data);
    }

    // 配置
    public static Map<Integer, LightMarketMainLvConfig> getLightMarketMainLvConfigList(int activityId) {
        return DaoHelper.getJieShiConfigDaoImpl().getLightMarketMainLvConfigList(activityId);
    }

    public static Map<Integer, LightMarketShopConfig> getLightMarketShopConfigList(int activityId) {
        return DaoHelper.getJieShiConfigDaoImpl().getLightMarketShopConfigList(activityId);
    }

    public static Map<Integer, LightMarketPatronConfig> getLightMarketPatronConfigList(int activityId) {
        return DaoHelper.getJieShiConfigDaoImpl().getLightMarketPatronConfigList(activityId);
    }

    public static Map<Integer, LightMarketRhythmConfig> getLightMarketRhythmConfigList(int activityId) {
        return DaoHelper.getJieShiConfigDaoImpl().getLightMarketRhythmConfigList(activityId);
    }

    public static Map<Integer, LightMarketEventConfig> getLightMarketEventConfigList(int activityId) {
        return DaoHelper.getJieShiConfigDaoImpl().getLightMarketEventConfigList(activityId);
    }
}
